package com.xinian.springclud_demo.enums;

import lombok.Data;


public enum StatusEnum {

    SUCCESS (200,"成功"),
    NO_PERMISSION(403, "你无权访问"),
    NO_Auth(401, "未授权，请登录验证"),
    NO_FOUND(404, "未找到资源"),
    INTERNAL_SERVER_ERROR(500, "服务器异常, 请联系管理员!"),
    FAIL(502,"失败");

    private Integer errorCode;
    private String errorMsg;

    StatusEnum(Integer errorCode,String errorMsg){
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
    public Integer getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }


}
